#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int sum = 1;
	int sum1 = 0;
	int j ;
	for (j=10 ; j >= 1; j -- )
	{
		sum = 1;
		for ( ; j > 0 ; j -- )
		{
			sum = sum * j;
		}
		sum1 = sum1 + sum;
	}
	printf("%d\n", sum1);
}